package com.sws.weixin.mapper;


import com.sws.weixin.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TUser2Mapper {
    int deleteByPrimaryKey(String openid);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(String openid);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    @Select("select * from ry_wx_user where openid = #{openid}")
    TUser selectByOpenid(String openid);

}